package com.example.sxmall.controller.shopCart.vo;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Max;
import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = true)
public class ProductVO extends ProductBean {

    private static final long serialVersionUID = 9131053994867930529L;
    /**
     * 标签
     */
    private ThemeLabelVO themeLabel;
    /**
     * 当前spu下价格最低的商品价格
     */
    private String showPrice;
    /**
     * 佣金
     */
    private BigDecimal commissions;

    private Integer buyCount;
    /**
     * 最小购买数量
     */
    private Integer minPurchase;
    /**
     * 最大购买数量
     */
    @Max(message = "超过最大购买量", value = 99999)
    private Integer maxPurchase;
    /**
     * 上下架 0:未知 1:上架 2:下架
     */
    private Integer onShelf;
    /**
     * 是否勾选(购物车)
     */
    private Boolean check;
    /**
     * 分享人id
     */
    private Long shareId;

}